import { Component, Input  } from '@angular/core';

@Component({
  selector: 'nova-menu',
  templateUrl: './menu.component.html',
  styleUrls: ['./menu.component.scss']
})
export class MenuComponent {
  @Input()
  title:string = ""
  @Input()
   content:string = ""
    /* 当用户点击隐藏时，在显示和隐藏导航菜单链接之间切换 */
 myFunction() {
  var x = document.getElementById("myLinks");
  if (x!.style.display === "block") {
    x!.style.display = "none";
  } else {
    x!.style.display = "block";
  }
}
}
